/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-05-13
 * Time: 22:22
 */

public class Test {
    public static void main(String[] args) {
        SingleList list = new SingleList();
//        list.addFirst(1);
//        list.addFirst(2);
//        list.addFirst(3);
//        list.addFirst(4);
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(4);
        list.print();
//        list.addFirst(6);
        System.out.println("==================");
//        list.deleteFrist();
//        list.print();
//        list.deleteFrist();
//        list.print();
//        list.deleteFrist();
//        list.print();
//        list.deleteFrist();
//        list.print();
//        list.deleteFrist();
//        list.print();
list.deleteLast();
list.print();
        list.deleteLast();
        list.print();list.deleteLast();
        list.print();
        list.deleteLast();
        list.print();
        list.deleteLast();
        list.print();
        list.addFirst(1);
        list.addFirst(3);
        list.addFirst(2);
        list.addFirst(4);
        list.addFirst(5);
        System.out.println(list.findVal(1));
        System.out.println(list.findVal(6));
        System.out.println(list.findVal(2));
        list.print();
        System.out.println(list.getSize());
        list.insert(0,13);
        list.print();
        list.insert(5,113);
        list.print();
        list.insert(7,1134);
        list.print();
        list.insert(-7,1134);
        list.print();
        list.insert(17,1134);
        list.print();
        System.out.println("==============================");
        list.remove(1);
        list.print();
        list.remove(13);
        list.print();
        list.remove(1134);
        list.print();
        list.remove(2);
        list.print();
        list.addFirst(1);
        list.addLast(1);
        list.addLast(2);
        list.addLast(1);
        list.addLast(1);
        list.addLast(1);
        list.addLast(1);
        list.print();
        System.out.println("=====================");
        list.removeAll(1);
        list.print();
        System.out.println("==============");
        list.clear();
        list.addLast(12);
        list.addLast(34);
        list.addLast(23);

        list.addLast(56);
        list.addLast(44);
        list.print();
//        System.out.println(list.chkPalindrome());
            list.print();
            System.out.println("==================");
        list.partition(30);
            list.print();
    }

}
